//
//  DetailCaseTableViewCell.m
//  HomeFurnishing
//
//  Created by dllo on 16/3/29.
//  Copyright © 2016年 YMing. All rights reserved.
//

#import "DetailCaseTableViewCell.h"

@implementation DetailCaseTableViewCell

-(void)dealloc
{
    [_imgView release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        //_imgView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_imgView];
        [_imgView release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(20, 20, SCREEN_WIDTH - 40, self.contentView.frame.size.height - 40);
//    _imgView.layer.cornerRadius = _imgView.frame.size.width/2;
//    _imgView.clipsToBounds = YES;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
